import { DeployFunction } from 'hardhat-deploy/types'
import { HardhatRuntimeEnvironment } from 'hardhat/types'

const wnft: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
  const { firstAccount } = await hre.getNamedAccounts()
  const { deploy, log } = hre.deployments

  log('Deploying wnft contract...')
  await deploy('WrappedMyToken', {
    contract: 'WrappedMyToken',
    from: firstAccount,
    log: true,
    args: ['WrappedMyToken', 'WMT']
  })
  log('wnft contract deployed successfully!')
}

// 添加 tags
wnft.tags = ['destchain', 'all']

export default wnft
